package com.seven.db;

import java.util.HashMap;

/**
 * @Author seven
 * @Date 2020/5/11 15:47
 **/

public class Database {
    //存入的数据
    private static HashMap<String,Boolean> hashMap=new HashMap<String,Boolean>();
    static {
        hashMap.put("seven",false);
    }
    //是否激活
    public static void active(String name){
        hashMap.put(name,true);
    }
    //保存
    public static void save(String name){
        hashMap.put(name,true);
    }
    //获取
    public static boolean get(String name){
        return hashMap.get(name)!=null;
    }
}
